Data Visualization with D3 4.x Cookbook - Second Edition by Nick Zhu

Data Visualization with D3 4.x Cookbook - Second Edition by Nick Zhu

Author:Nick Zhu
Language: eng
Format: epub
Publisher: Packt Publishing


See also

For more information on d3.timer, please visit its API at the following link: https://github.com/d3/d3-timer/blob/master/README.md#timer

Chapter 7. Getting into Shape

In this chapter, we will cover:

Creating simple shapes

Using a line generator

Using line curve

Changing line tension

Using an area generator

Using area curve

Using an arc generator

Implementing arc transition

Introduction

Scalable Vector Graphics (SVG) is a mature World Wide Web Consortium (W3C) standard designed for user-interactive graphics on the Web and Mobile platform. Similar to HTML, SVG can coexist happily with other technologies, such as CSS and JavaScript, in modern browsers and forms the backbone of many Web applications. In today's Web, you can see use cases of SVG everywhere, from digital map to data visualization. So far, in this book, we covered most of the recipes using HTML elements alone; however, in real-world projects, SVG is the de facto standard for data visualization; it is also where D3's strength really shines. In this chapter, we will cover the basic concept of SVG and D3's support for SVG shape generation. SVG is a very rich topic. Volumes of books can be, and have been, devoted to this topic alone; hence, we will not plan or even try to cover all SVG-related topics, rather we'll focus on D3 and data visualization-related techniques and features.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.